import db from '../Database/database.js';
//定义操作接口
export async function Getstuinfo(req,resp){
    try {
        const [result]=await db.query("select * from stuinfo");
        resp.send({
            status: 100,
            data: result,
            desc: "获取学生列表成功！"
        })
    }
     catch (error) {
        console.log(error.message);
    }
}//导出获取学生信息的接口
